package com.example.mymvp02.Base;

/**
 * @user XUNUA
 * @email xunua@outlook.com
 * @creat time 2020/4/14 16:35
 */
public abstract class BasePresenter<M extends BaseModel,V extends BaseActivity,CONTRACT>extends SuperBase<CONTRACT> {
    public M mModel;
    public V mView;

    public BasePresenter() {
        this.mModel= getModelInstance();
    }

    public void bindView(V mView){
        this.mView=mView;
    }
    public void unbindView(V mView){
        this.mView=null;
    }
    public abstract M getModelInstance();
}
